package org.airlink.persistence.criteria
{
	import flex.persistence.criteria.Join;
	import flex.persistence.criteria.JoinType;
	import flex.persistence.metamodel.Attribute;
	import org.airlink.persistence.EntityManagerImpl;
	public class JoinImpl extends FromImpl implements Join
	{
		private var _jointType:JoinType;
		
		public function JoinImpl(attribute:Attribute, joinType:JoinType=null)
		{
			super(attribute.clazz,null,attribute,attribute.entityManager as EntityManagerImpl,attribute.aliasIndex);
			_jointType=joinType;
		}
		
		public function getAttribute():Attribute {
			return _attribute; 
		}		
		
		public function getJoinTypes():JoinType {
			return _jointType;
		}
	}
}